<template>
  <div class="pt-30px ">
    <Echart :options="useBarOptions(enterData, options).baseOptions" />
  </div>
</template>
<script setup lang="ts">
import { useBarOptions } from '@/hooks/chart/useBarOptions'
// 按儿童统计每个学期的身体各项指标的发展情况

const enterData = [
  { value: 120, name: '视力' },
  { value: 70, name: '身高' },
  { value: 30, name: '体重' },
  { value: 10, name: '食量' },
  { value: 8, name: '睡眠' }
]
const options = {
  title: {
    text: '按儿童统计每个学期的身体各项指标的发展情况',
    left: 'center'
  },
  legend: {
    data: ['视力', '身高', '体重', '食量', '睡眠'],
  }
}
</script>
<style lang="scss" scoped></style>
